import {
    request
} from "./request";
import qs from "qs";

export function updateUser(obj) {
    return request({
        url: "user/updateUser",
        method: "post",
        data: obj,
        headers: { 'Content-Type': 'multipart/form-data' }
    });
}
export function addUserCases(obj) {
    return request({
        url: "user/addUserCases",
        method: "post",
        data: obj,
        headers: { 'Content-Type': 'multipart/form-data' }
    });
}
export function getUserCases(obj) {
    return request({
        url: "user/getUserCases",
        method: "post",
        data: qs.stringify(obj)
    });
}
// 完成任务
export function updateUserTask(obj) {
    return request({
        url: "user/updateUserTask",
        method: "post",
        data: qs.stringify(obj)
    });
}
// 获取任务列表
export function taskList(obj) {
    return request({
        url: "main/taskList",
        method: "post",
        data: qs.stringify(obj)
    });
}
// 获取任务列表
export function getUserTask(obj) {
    return request({
        url: "user/getUserTask",
        method: "post",
        data: qs.stringify(obj)
    });
}
// 获取积分列表
export function getUserTaskInfo(obj) {
    return request({
        url: "user/getUserTaskInfo",
        method: "post",
        data: qs.stringify(obj)
    });
}
// 获取家庭列表
export function getUserInfoById(obj) {
    return request({
        url: "user/getUserInfoById",
        method: "post",
        data: qs.stringify(obj)
    });
}
// 获取家庭列表
export function senMessage(obj) {
    return request({
        url: "doctor/senMessage",
        method: "post",
        data: qs.stringify(obj)
    });
}

// 用户删除档案
export function deleteUserCases(obj) {
    return request({
        url: "user/deleteUserCases",
        method: "post",
        data: qs.stringify(obj)
    });
}
// 用户申请列表
export function listMyApply(obj) {
    return request({
        url: "user/listMyApply",
        method: "post",
        data: qs.stringify(obj)
    });
}
// 用户再次提交
export function unApplyService(obj) {
    return request({
        url: "user/unApplyService",
        method: "post",
        data: obj,
        headers: { 'Content-Type': 'multipart/form-data' }
    });
}